package com.light.roller;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.opengl.buffer.BufferObjectManager;

import android.content.Intent;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.Debugger;

public class Roller_1 extends Roller{
	
	@Override
	public Engine onLoadEngine() {

		Vector2 cameraCenter = new Vector2(100, 390);
		Vector2 playerInitialPositon = cameraCenter.cpy();
		Vector2 doorPosition = new Vector2(530,370);
		stage = new Stage_1(this);
		stage.onLoadEngine();
		Engine engine = initialize(cameraCenter, playerInitialPositon,doorPosition,Direction.UP);
		Debugger.HIDE_STATIC_WALL = true;
		return engine;
	}
	
	public void reset()
	{
		ResourceManager.unLoadAllSounds();
		stage.removeStoper(scene, physicsWorld);
		Roller_1.this.finish();
		Roller_1.this.startActivity(new Intent(Roller_1.this, Roller_1.class));
		BufferObjectManager.getActiveInstance().clear();
		
	}
	
	@Override
	protected void nextStageSetting()
	{
		Roller_1.this.finish();
		Roller_1.this.startActivity(new Intent(Roller_1.this, Roller_S10.class));
		BufferObjectManager.getActiveInstance().clear();
		
	}
	
	

}
